#ifndef PLACEMANGERWIDGET_H
#define PLACEMANGERWINDOW_H
#include <QPushButton>
#include <QMainWindow>
#include <QTableWidget>
#include <QTableWidgetItem>
#include "PlaceManger.h"
#include <addplacewid.h>
#include "editplacewid.h"
#include "searchplacewid.h"
#include "mytool.h"
#include <QComboBox>

class PlaceMangerWindow : public QMainWindow
{
	Q_OBJECT

public:
    explicit PlaceMangerWindow(QWidget *parent = 0);
    ~PlaceMangerWindow();
    void tableUpdate();
    void SetMainBox(QComboBox *mainNameBox);
public slots:
    void showInfo(QModelIndex);
    void updataSlots();    //更新列表
    void delPlace();
    void seaRes(char *);
    void dataInit();
private:
    void barInit();
    void tableInit();
    void tableDataInit();

    QTableWidget *table;
    AddPlaceWid *addWid;
    EditPlaceWid *editWid;
    SearchPlaceWid *seaWid;
    QLabel *searchNameLab;
    QLineEdit *searchNameEdit;
    QPushButton *confirmBtn;
    QComboBox *mainNameBox;
};

#endif // PLACEMANGERWINDOW_H
